CSE 311: Section 4
Task 1 – Cartesian Products
Let
,
,
,
and
be sets. Consider the following claim:
Suppose that
,
.
Calculate the values of the sets
and
.
Check whether the claim holds.
Suppose that
,
.
Calculate the values of the sets
and
.
Check whether the claim holds.
Write an English proof that the claim holds.
Follow the structure of our template for subset proofs.
Note: even though we want you to write your proof
directly in English, it must still look like the translation of a formal
proof. In particular, you must include all steps that would be required
of a formal proof, excepting only those that we have explicitly said are
okay to skip in English proofs.
Task 2 – Power Sets
Let
and
be sets. Consider the following claim:
Suppose that
,
.
Calculate the values of the sets
and
.
Check whether the claim holds.
Suppose that
,
.
Calculate the values of the sets
and
.
Check whether the claim holds.
Write an English proof that the claim holds
given that
.
(This updated claim describes the situation in part (a) but not part
(b).)
Follow the structure of our template for subset proofs.
Note: even though we want you to write your proof
directly in English, it must still look like the translation of a formal
proof. In particular, you must include all steps that would be required
of a formal proof, excepting only those that we have explicitly said are
okay to skip in English proofs.
Task 3 – Set Equality
Let
,
,
and
be sets. For each of the following claims:
State whether the the claim is true or
false.
If the claim is true, write an English proof
that the claim holds following the Meta Theorem template. (In
your equivalence chain, you can skip steps showing commutativity or
associativity, as long as each step is easy to follow.)
If it the claim false, give a counterexample.
Provide specific finite sets for
,
,
and
,
and then calculate the value of each side of the claim, showing that
they do not produce the same set. (Be sure to show the value of each
intermediate expression, when calculating each side.)
Task 4 – Structural Induction on Lists
Recall the definition of lists of numbers from lecture:
Basis Step:
Recursive Step: for any
,
if
,
then
.
For example, the list
would be created recursively from the empty list as
.
We will consider
“”
to associate to the right, so
means the same thing.
The parts below use two recursively-defined functions. The first is
,
which calculates the length of the list. It is defined recursively as
follows:
The second function,
,
which duplicates each positive number in the list, is defined by:
For example, with these
definitions, we get
.
Write a calculation block, citing the appropriate definitions,
showing that
Use structural induction to prove that
Hint: Use cases in the inductive step.